package com.itheima.inner3;

public class Test {
    public static void main(String[] args) {

        //Outer out=
        int  age= Outer.age;
        System.out.println(age);
        Outer outer = new Outer();
        Outer.Inner inner=new Outer.Inner();
        System.out.println(inner.i);
        inner.sing();
        Outer.Inner.rap();


    }


}


class Outer{

   static int  age=20;


    public void jump(){

        System.out.println("跳一曲");
    }
    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

   static class Inner{
        int i=30;
        public Inner(){

            super();
        }
        public void sing(){

           System.out.println("来一首");
       }
        public static void rap(){
            System.out.println("说一段");
        }
        public int getI() {
            return i;
        }

        public void setI(int i) {
            this.i = i;
        }
    }



}